/*
 * Item.scala
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package swta.crud.model

import net.liftweb.mapper._

class Item extends LongKeyedMapper[Item] with IdPK {
    def getSingleton = Item

    object price extends MappedDouble(this)
    object name extends MappedString(this, 60)
    object description extends MappedTextarea(this, 500)
    object image extends MappedString(this, 500)
    object link extends MappedString(this, 500)
}

object Item extends Item with LongKeyedMetaMapper[Item] {
    override def dbTableName = "items"
}